<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class Home extends TController
{
	private $_vars = array();
	/**
	 * 构造函数
	 *
	 * @return Home
	 */
	public function __construct()
	{
		parent::__construct();
	}
	/**
	 * 运行函数 *
	 */
	public function run()
	{

//		$this->service('soap');
//		var_dump($this->soap);
//		$msg = "";
//		Configure::load('email');
//		$this->view->setTemplate("index.html");
//		$conf = Configure::item_array('email');
//		$this->email->initialize($conf['default']);
//		$this->email->from('ibopo@126.com','bopo');
//		$this->email->to('ibopo@126.com');
//		$this->email->subject('test mail');
//		$this->email->message($this->view->result());
//		$this->email->send();
//
//		Configure::load('cc');
//		var_dump(Configure::item_array('cc'));
//		$this->db->insert('blog',array('title'=>'test title'));
//		$this->db->update('blog',array('title'=>'test //'),'id=5');
		$this->db->delete('blog','id=5');
		$arr = array('id'=>2);
		$data = $this->db->getwhere('blog')->result_array();
		echo "<pre>";
		print_r($data);
		sdfsdfs;
		$this->log->write('ssssssssssssssssssssss');
		$this->view->setTemplate("home.html");
		$this->view->assign('list',$data);
		$this->view->display();
	}
}
?>